Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for base access with explicit base type. #35456

Merged
merged 2 commits into from
May 3, 2019

Conversation

AlekseyTs
Copy link
Contributor

Related to #32054.

@AlekseyTs AlekseyTs requested a review from a team as a code owner May 2, 2019 22:38
ERR_NotDeclaredInBase = 8710,
//ERR_NotBaseOrImplementedInterface = 8708,
//ERR_NotImplementedInBase = 8709,
//ERR_NotDeclaredInBase = 8710,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may be better to just delete these, since it will likely be inappropriate to include these diagnostics in the C# 8.0 range of codes if it is introduced in a later language version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One possible reason to keep these error codes is to make it easier to revert this PR later on (to re-introduce the feature). We can reserve those error codes.


In reply to: 280623450 [](ancestors = 280623450)

Copy link
Member

@gafter gafter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review, need a second sign-off

boundType = new BoundTypeExpression(node.TypeClause.BaseType, alias, baseType, hasErrors);
}

TypeSymbol baseType = this.ContainingType is null ? null : this.ContainingType.BaseTypeNoUseSiteDiagnostics;
bool inStaticContext;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inStaticContext [](start = 17, length = 15)

nit: consider inlining declaration

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 2)

@@ -4391,144 +4391,5 @@ public void BaseExpression_01()
}
EOF();
}

[Fact]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fact [](start = 9, length = 4)

General question about this PR:
I don't think the removal of base(Something) is a breaking change, since the feature has not RTM'ed. But if anyone has been using this feature in preview, their code will break. Does that rise to the level where we want to add a note to breaking changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature became available only a couple of weeks ago in Preview 3 of VS.


In reply to: 280927546 [](ancestors = 280927546)

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants